package guda.house.biz.util;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;

/**
 * Created by pyshift on 15/5/12.
 */
public class HtmlUtil {
    public static String getResponse(InputStream inputStream) throws IOException {
        String response = null;
        BufferedReader resBufferReader = null;
        try {
            resBufferReader = new BufferedReader(new InputStreamReader(inputStream));
            StringBuilder resBuffer = new StringBuilder();
            String resTemp = "";
            while ((resTemp = resBufferReader.readLine()) != null) {
                resBuffer.append(resTemp);
            }
            response = resBuffer.toString();
        } catch (Exception e) {
        }
        return response;
    }
}
